<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //扩展运算符...
        function have() {
            console.log(arguments);
        }
        let name = ['z', 'q', 's', 'l']
        have(...name)
        //...加一个数组
        //将数组转化为用逗号隔开的参数序列
        //1.合并 2.克隆 3。将伪数组转为数组
        const mx = ['wang', 'ming']
        const ty = ['lingzhi', 'laohu']
        const newdata = [...mx, ...ty]//方法一
        let shuju = mx.concat(ty)//方法二
        console.log(newdata);
        console.log(shuju);
    </script>
</body>

</html>